package com.coderman.common.vo.system;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @author zhangyukang
 * @since 2020/3/15 14:13
 * @version 1.0
 **/
@Data
public class DepartmentVO {

	private Long id;

	@NotBlank(message = "院系名称不能为空")
	private String name;

	@NotBlank(message = "办公电话不能为空")
	private String phone;

	@NotBlank(message = "办公地址不能为空")
	private String address;

	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
	private Date createTime;

	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
	private Date modifiedTime;

	/** 部门内人数 **/
	private int total;

}
